/*
* 文章分类 - api
*
*/

import { postRequest, getRequest } from '@/lib/axios';

export const sortApi = {
    /*
    * 创建标签
    *
    */
    create: (params) => {
        return postRequest('/api/private/sort/create', params);
    },

    /**
     *  查询所有标签信息
     * 
    */
    list: (params) => {
        return postRequest('/api/private/sort/list', params);
    },

    /**
     *  根据id查询标签信息
     * 
    */
    findOne: (params) => {
        return postRequest('/api/private/sort/findOne', params);
    },

    /**
     *  更新标签信息
     * 
    */
    update: (params) => {
        return postRequest('/api/private/sort/update', params);
    },

    /**
     *  删除标签信息
     * 
    */
    delete: (params) => {
        return postRequest('/api/private/sort/delete', params);
    },

    /**
     *  删除所有标签信息
     * 
    */
    deleteAll: () => {
        return postRequest('/api/private/sort/deleteAll');
    },
}